package com.test.javafaq_portal.service;

import com.github.pagehelper.PageInfo;
import com.test.javafaq_portal.entity.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.test.javafaq_portal.vo.QuestionVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author test.com
 * @since 2025-04-11
 */
public interface IQuestionService extends IService<Question> {

    Question getQuestionById(Integer id);

    //获取当前登陆僵尸的所有问题列表  分页

    PageInfo<Question> getTeacherQuestions(String name,Integer pageNum,Integer pageSize);

    //获取提问数量
    Integer countQuestionByUserId(Integer userId);

    //将问题添加到数据库
    void saveQuestion(QuestionVo questionVo);

    //获得当前登陆学生的问题
    //List<Question> getMyQuestions();
    PageInfo<Question>  getMyQuestions(Integer pageNum,Integer pageSize);

}
